const gulp = require('gulp');
const gulp_uglify = require('gulp-uglify');
const gulp_minCss = require('gulp-minify-css');
const gulp_minImg = require('gulp-imagemin');


//压缩js
// gulp_uglify(无参);
gulp.task("uglify", () => {
    gulp.src("2.server.js").pipe(gulp_uglify()).pipe(gulp.dest("d:/dest"));
});

//压缩css
//gulp_minCss();
gulp.task("minCss", () => {
    gulp.src("css/**/*").pipe(gulp_minCss()).pipe(gulp.dest("d:/dest"));
});

//压缩图片
// gulp_minImg();
gulp.task("minImg", () => {
    gulp.src("images/**/*").pipe(gulp_minImg()).pipe(gulp.dest("d:/dest"));
});
